<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
    <meta HTTP-EQUIV="Pragma" CONTENT="no-cache">
    <meta HTTP-EQUIV="Cache-Control" CONTENT="no-cache">
    <meta HTTP-EQUIV="Expires" CONTENT="0">
    <link rel="stylesheet" href="/css/weui-0.4.3.css">
    <link rel="stylesheet" href="/css/weui.css">
    <title>站点监控配置</title>
</head>
<body>
    <div class="weui-cells weui-cells_form">
        <input type="hidden" th:value="${quartzDO?.id}" id="id">
        <input type="hidden" th:value="${quartzDO?.jobGroup}" id="jobGroup">
        <div class="weui-cell">
            <div class="weui-cell__hd"><label class="weui-label" >站名</label></div>
            <div class="weui-cell__bd">
                <input class="weui-input" type="text" name="name" th:value="${quartzDO?.name}"  id="name" placeholder="请输入站点名称"/>
            </div>
        </div>
        <div class="weui-cell">
            <div class="weui-cell__hd"><label class="weui-label">网址</label></div>
            <div class="weui-cell__bd">
                <input class="weui-input" type="text" name="url" th:value="${quartzDO?.url}"  id="url"  placeholder="请输入网站(www.xx.com)"/>
            </div>
        </div>
        <div class="weui-cells__title">监控间隔时间</div>
        <div class="weui-cells weui-cells_radio">
            <label class="weui-cell weui-check__label" for="x11">
                <div class="weui-cell__bd">
                    <p>5分钟/次</p>
                </div>
                <div class="weui-cell__ft">
                    <input type="radio" class="weui-check" name="radio" id="x11" th:checked="${min eq '5'}" checked="checked" value="5">
                    <span class="weui-icon-checked"></span>
                </div>
            </label>
            <label class="weui-cell weui-check__label" for="x12">
                <div class="weui-cell__bd">
                    <p>10分钟/次</p>
                </div>
                <div class="weui-cell__ft">
                    <input type="radio" name="radio" class="weui-check" id="x12" th:checked="${min eq '10'}" value="10" >
                    <span class="weui-icon-checked"></span>
                </div>
            </label>
            <label class="weui-cell weui-check__label" for="x13">
                <div class="weui-cell__bd">
                    <p>30分钟/次</p>
                </div>
                <div class="weui-cell__ft">
                    <input type="radio" name="radio" class="weui-check"  id="x13" th:checked="${min eq '30'}" value="30">
                    <span class="weui-icon-checked"></span>
                </div>
            </label>
        </div>
        <div class="weui-btn-area">
            <a th:if="${isQuartzEdit}" class="weui-btn weui-btn_primary" href="javascript:"  onclick="edit()" >确定</a>
            <a th:if="${isSave}" class="weui-btn weui-btn_primary" href="javascript:" onclick="save()" >确定</a>
        </div>
    </div>

    <div style="display: none;" id="alert">
        <div class="weui-mask"></div>
        <div class="weui-dialog">
            <div class="weui-dialog__hd"><strong class="weui-dialog__title">操作提示</strong></div>
            <div class="weui-dialog__bd" id="alertContent"></div>
            <div class="weui-dialog__ft">
                <a href="javascript:;" class="weui-dialog__btn weui-dialog__btn_primary" onclick="hideAlert()">确定</a>
            </div>
        </div>
    </div>
    <div id="loadingToast" style="display:none;">
        <div class="weui-mask_transparent"></div>
        <div class="weui-toast">
            <i class="weui-loading weui-icon_toast"></i>
            <p class="weui-toast__content">正在配置</p>
        </div>
    </div>
<script type="text/javascript" src="/js/jquery.min.js"></script>
<script type="text/javascript" src="/js/station/save.js"></script>
</body>
</html>